<template>
    <div class="header-bar">
      <div class="left">会员管理系统</div>
      <div class="right">
        <el-icon><User /></el-icon>
        <el-button type="text" @click="logout">退出登录</el-button>
      </div>
    </div>
  </template>
  
  <script setup>
  import { useRouter } from 'vue-router'
  const router = useRouter()
  
  function logout() {
    localStorage.removeItem('token')
    router.push('/')
  }
  </script>
  
  <style scoped>
 .header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
  padding: 0 32px;
  background: linear-gradient(90deg, #3a8dde 0%, #005fa3 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border-bottom: none;
  position: relative;
  z-index: 10;
}
.left {
  font-size: 22px;
  font-weight: bold;
  letter-spacing: 2px;
}
.right {
  display: flex;
  align-items: center;
  gap: 16px;
}
  </style>
  